{% extends 'layout.html' %}

{% block content %}
        <div class="card" style="margin-top: 30px;">
            <div class="card-header">
                <h3>新建部门</h3>
            </div>
            <div class="card-body">
                <form method="post" novalidate>
                    {% csrf_token %}

                    {% for field in form %}
                        <div class="mb-3">
                            <label  class="form-label">{{ field.label }}</label>
<!--                        <input type="text" class="form-control" id="title" name="title" placeholder="部门名称">-->
                            {{ field }}
                            <span style="color: red;">{{ field.errors.0 }}</span>
                        </div>
                    {% endfor %}
                    <button type="submit" class="btn btn-primary">提 交</button>
                </form>
            </div>
        </div>
{% endblock %}
